home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / atexit.z / atexit
Encoding:
Text File  |  1998-10-20  |  3.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. aaaatttteeeexxxxiiiitttt((((3333CCCC))))                                                          aaaatttteeeexxxxiiiitttt((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _aaaa_tttt_eeee_xxxx_iiii_tttt, ___________aaaa_tttt_eeee_aaaa_cccc_hhhh_eeee_xxxx_iiii_tttt - add program termination routine
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_tttt_dddd_llll_iiii_bbbb_...._hhhh_>>>>
  13.  
  14.      _iiii_nnnn_tttt _aaaa_tttt_eeee_xxxx_iiii_tttt _((((_vvvv_oooo_iiii_dddd _((((_****_ffff_uuuu_nnnn_cccc_))))_((((_vvvv_oooo_iiii_dddd_))))_))))_;;;;
  15.  
  16.      _iiii_nnnn_tttt ___________aaaa_tttt_eeee_aaaa_cccc_hhhh_eeee_xxxx_iiii_tttt _((((_vvvv_oooo_iiii_dddd _((((_****_ffff_uuuu_nnnn_cccc_))))_((((_vvvv_oooo_iiii_dddd_))))_))))_;;;;
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      _aaaa_tttt_eeee_xxxx_iiii_tttt adds the function _f_u_n_c to a list of functions to be called without
  20.      arguments on normal termination of the program.  Normal termination
  21.      occurs by either a call to the _eeee_xxxx_iiii_tttt system call or a return from _mmmm_aaaa_iiii_nnnn.
  22.      At most 32 functions may be registered by _aaaa_tttt_eeee_xxxx_iiii_tttt; the functions will be
  23.      called in the reverse order of their registration.
  24.  
  25.      For _s_p_r_o_c processes, _aaaa_tttt_eeee_xxxx_iiii_tttt is only called when the last member of the
  26.      share group exits, regardless of whether the share group creator has
  27.      returned from _m_a_i_n.
  28.  
  29.      ___________aaaa_tttt_eeee_aaaa_cccc_hhhh_eeee_xxxx_iiii_tttt adds the function _f_u_n_c to a list of functions to be called
  30.      without arguments on termination of any member of a share group.  Note
  31.      that the last share group member will call functions registered with
  32.      ___________aaaa_tttt_eeee_aaaa_cccc_hhhh_eeee_xxxx_iiii_tttt and _aaaa_tttt_eeee_xxxx_iiii_tttt.
  33.  
  34.      _aaaa_tttt_eeee_xxxx_iiii_tttt and ___________aaaa_tttt_eeee_aaaa_cccc_hhhh_eeee_xxxx_iiii_tttt return 0 if the registration succeeds, nonzero if
  35.      it fails.
  36.  
  37. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  38.      _eeee_xxxx_iiii_tttt(2), _ssss_pppp_rrrr_oooo_cccc(2).
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.